from rest_framework import serializers

from myapp.models import *
class CarouselSer(serializers.ModelSerializer):
    class Meta:
        model=Carousel
        fields = '__all__'

class GoodslSer(serializers.ModelSerializer):
    class Meta:
        model=Goods
        fields = '__all__'

class CategorySer(serializers.ModelSerializer):
    class Meta:
        model=Category
        fields = '__all__'

class CommentSer(serializers.ModelSerializer):
    class Meta:
        model=Comment
        fields = '__all__'

class Userser(serializers.ModelSerializer):
    class Meta:
        model=User
        fields = '__all__'

class Usertestser(serializers.Serializer):
    id = serializers.IntegerField()
    username = serializers.CharField(max_length=200)